package cn.luzhangduo.studentsystemproject.controller;

import cn.luzhangduo.studentsystemproject.model.ChartItem;
import cn.luzhangduo.studentsystemproject.service.AgentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ShowDataController {
    @Autowired
    private AgentService agentService;

    @RequestMapping("/getAgentDatas")
    public List<ChartItem> getAgentDatas(){
        return agentService.getAgentDatas();
    }
}
